﻿@model PlmConstructionlogcivilViewModel
@{
    Layout = null;
    ViewBag.Title = "施工日志-土建添加";
}
@*<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#pagerForm", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
@{Html.EnableClientValidation();}*@
@using (Html.BeginForm("ConstructionLogCivilAddHandle", "PlmConstructionLogCivil", new{ target = ViewBag.target }, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogAjaxDone);", @class = "pageForm required-validate"}))
{
    if (ViewBag.target == "edit")
    {
        <input id="Clc_ID" name="Clc_ID" type="hidden" value="@ViewBag.ClC_Id" />
    }
    <div class="pageContent">

        <div class="pageFormContent sortDrag" layouth="60">

            <dl>
                <dt>操作人：</dt>
                <dd>
                    <input id="Clc_UserName" name="Clc_UserName" type="text" readonly="true" value="@ViewBag.LoginUserName" />
                    <input id="Clc_UserID" name="Clc_UserID" type="hidden" value="@ViewBag.LoginUserId" />
                </dd>
            </dl>
            <dl>
                <dt>操作日期：</dt>
                <dd>
                    <input id="Clc_UpdateTime" name="Clc_UpdateTime" type="text" readonly="true" value="@DateTime.Now.ToString("yyyy-MM-dd")" />
                </dd>
            </dl>
            @* <dl>
                    <dt>总监办：</dt>
                    <dd>

                        <select name="type" class="required combox">
                            <option value="0">YLZJ-1</option>
                            <option value="1">YLZJ-2</option>
                        </select>
                    </dd>
                </dl>*@
            <dl>
                <dt>施工标段：</dt>
                <dd>
                    <input id="Clc_ConstructionSection" name="Clc_ConstructionSection" type="text" readonly="true" value="@ViewBag.ConstructionSection" />
                </dd>
            </dl>
            <dl>
                <dt>施工日期：</dt>
                <dd>
                    @if (ViewBag.target == "edit")
                    {
                        <input id="Clc_ConstructionDate" name="Clc_ConstructionDate" type="text" class="date" value="@ViewBag.Clc_ConstructionDate" />
                    }
                    else
                    {
                        <input id="Clc_ConstructionDate" name="Clc_ConstructionDate" type="text" class="date" value="@DateTime.Now.ToString("yyyy-MM-dd")" />
                    }
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>施工单位：</dt>
                <dd>
                    <input id="Clc_ConstructionName" name="Clc_ConstructionName" type="text" class="required" readonly="true" size="60" value="@ViewBag.ConstructionName" />
            </dl>
            @Html.Raw(ViewBag.dynamicHtml)
            <dl class="nowrap">
                <dt>备注：</dt>
                <dd>
                    <textarea cols="80" id="Clc_Remark" name="Clc_Remark" rows="3" class="textInput">@ViewBag.Clc_Remark</textarea>
                </dd>
            </dl>

            <dl style="display:none">
                <dt>附件：</dt>
                <dd>
                    <!---以后更改附件的信息，必需使用这个ID，因为后台需要过滤这个ID--->
                    <input id="AssistID" name="AssistID" value="@ViewBag.AssisId" type="hidden" />

                    <a href='/Common/UploaderFile/Uploader/?id=ZDFileID' width="710" height="460" rel="rel_WorkFlow_WorksMeasure_Attach" mask="true" target="dialog" title="附件管理">
                        <img src="/Content/themes/default/images/fj.gif" alt="查看附件" id='ZDFileID'
                             uploaderoption="{MoudleID:@ViewBag.MoudleID,'ToSelectIDs':[@ViewBag.FileIds],'ToDeleteIDs':[@ViewBag.DeleteIds],BizDeleteURL:'/PersonnelLog/Base/Delete/',BizSaveUrl:'/PersonnelLog/Base/BatchAdd/',BizType:'ConstructionlogCivil_Rules',BizID:'@ViewBag.AssisId','dirWhere':'@ViewBag.DirWhere'}" />
                    </a>
                </dd>
            </dl>
        </div>
        <div class="formBar">
            <ul>

                <li>
                    <button type="submit" class="btn btn-sm">保存</button>
                </li>
                <li>
                    <button type="button" class="close btn btn-default btn-sm">取消</button>
                </li>
            </ul>
        </div>
    </div>

    }
